﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.ADBannerView
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;
using System.ComponentModel;

#nullable disable
namespace UnityEngine
{
  [Obsolete("ADBannerView class is obsolete, Apple iAD service discontinued", true)]
  [EditorBrowsable(EditorBrowsableState.Never)]
  public sealed class ADBannerView
  {
    public static event ADBannerView.BannerWasClickedDelegate onBannerWasClicked
    {
      add
      {
      }
      remove
      {
      }
    }

    public static event ADBannerView.BannerWasLoadedDelegate onBannerWasLoaded
    {
      add
      {
      }
      remove
      {
      }
    }

    public bool loaded => false;

    public bool visible
    {
      get => false;
      set
      {
      }
    }

    public ADBannerView.Layout layout
    {
      get => ADBannerView.Layout.Top;
      set
      {
      }
    }

    public Vector2 position
    {
      get => new Vector2();
      set
      {
      }
    }

    public Vector2 size => new Vector2();

    public ADBannerView(ADBannerView.Type type, ADBannerView.Layout layout)
    {
    }

    public static bool IsAvailable(ADBannerView.Type type) => false;

    public enum Layout
    {
      Manual = -1, // 0xFFFFFFFF
      Top = 0,
      TopLeft = 0,
      Bottom = 1,
      BottomLeft = 1,
      CenterLeft = 2,
      TopRight = 4,
      BottomRight = 5,
      CenterRight = 6,
      TopCenter = 8,
      BottomCenter = 9,
      Center = 10, // 0x0000000A
    }

    public enum Type
    {
      Banner,
      MediumRect,
    }

    public delegate void BannerWasClickedDelegate();

    public delegate void BannerWasLoadedDelegate();
  }
}
